#include #include #include "Employee.h" using namespace std; int main() { EmployeePay emp_pay; string str_temp; double double_temp; int int_temp; /************USER INPUT**********/ cout << "Enter the employee name: "; cin >> str_temp; emp_pay.set_name(str_temp); while(!emp_pay.set_SSN(str_temp)) { cout << "Enter the employee SSN: "; cin >> str_temp; } while(!emp_pay.set_emp_num(str_temp)) { cout << "Enter the employee's number: ex(###-X) "; cin >> str_temp;} cout << "Enter the employee's date hired: "; cin.ignore(); getline(cin,str_temp); emp_pay.set_date(str_temp); do { cout << "Enter employee's annual salary: "; cin >> double_temp; } while(!emp_pay.set_annual(double_temp)); do { cout << "Enter employee's monthly salary: "; cin >> double_temp; } while(!emp_pay.set_monthly(double_temp)); do { cout << "Enter employee's dependents: "; cin >> int_temp; } while(!emp_pay.set_dependents(int_temp)); /************DISPLAY**********/ cout << endl; cout << "Name: " << emp_pay.get_name() << endl; cout << "SSN: " << emp_pay.get_SSN() << endl; cout << "Employee salary: " << emp_pay.get_emp_num() << endl; cout << "Date hired: " << emp_pay.get_date() << endl; cout << "Annual Income: " << emp_pay.get_annual() << endl; cout << "Monthly income: " << emp_pay.get_monthly() << endl; cout << "Dependents: " << emp_pay.get_dependents() << endl << endl; return 0; }